/*
 * Copyright (c) 2022  by Junzhao
 * THIS FILE IS PART OF JAVASE Song Huongkang PROJECT
 * All Rights Reserved.
 */

/*
2022年3月2日21:57:57
 */
class getshuxianhuashu {
    public static void main(String []args){
        for (int i =100;i<=999;i++){
            /*用于调试
            System.out.println(num(i));
             */
            int a = num(i);
            if (i==a) System.out.print(i + " ");
        }

    }
    //构造一个输出数的每一位数的立方和的方法
    public static int num(int i){
        int temp1 = 0;
        for (int j = 1;j <= 3;j++){
            int a = i % 10;
            i = i/10;
            int temp0 = a*a*a;
            temp1 += temp0;
        }
        return temp1;
    }

}
